import { Component } from '@angular/core';
import { PlayLppService } from '../modules/pipi/play-lpp.service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  title = 'pipi';

  activeNavItem: number = 0 ;
  constructor(public lppServ : PlayLppService ) {

  }
  selectNavItem(index: number): void {
    if(index == 0 || 1){
      localStorage.setItem('activeNavItem', window.location.href);
      this.activeNavItem = index;
      // this.lppServ.path()
    }else{
      this.activeNavItem = index;
      // this.lppServ.path()
    }
  }

  //弹出框样式
  isVisible = false;

  showModal(): void {
    this.isVisible = true;
  }

  handleCancel(): void {
    console.log('Button cancel clicked!');
    this.isVisible = false;
  }
}
